package cn.stylefeng.guns.modular.business.app.controller;

import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.modular.business.frequency.appversion.service.AppVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**版本管理*/
@CrossOrigin
@RestController
@RequestMapping("/api/appVersion")
public class ApiAppVersionController {

    @Autowired
    private AppVersionService appVersionService;

    /**
     * 版本升级
     *
     * @return
     */
    @PostMapping("/isUpgrade")
    public ResponseData isUpgrade() {
        return appVersionService.isUpgrade();
    }





}
